first version of motorcontroller, untested
added license