updated motorcontroller class, including new methods