Pose and Position control are implemented in the same script. You must select variable "opt=1" in order to do pose control. A different value must set in order to do position control.
In kinematic model is used now xeff dual quaternion in order to take into account the end effector.