added first version of motor controller