Added support for register/unregister motor. Removed extra print statements