cleaned up some backend code, and put in some testing drivetrain code.