MASSIVE UPDATE

organized and cleaned up code, changed some variable names, added
methods for motor statements