added some functions to make it easier to interface with the motors