Added code to compensate for global mvoevement either using the motor or using AOD and motor. AOD+motor code remains to be written.
Also the motor based compensation signal is now written to the data file along with a timestamp.