changes to curves including replacing the system call with a method which calls for moveit to return the robot to the clear position.