Fixed up some really boneheaded bugs in the motor driver