Changes to the template to work with the haptic device. This code only sends back position data, though, not forces.