Added scale and offset to the motors

Added scaling and offset functionality to the motors.  Added comments
to the code.