Continued work on motorcontroller.c