motor.c default functions written, require review and testing