Finalised code for active response kinect changes