changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow