added function to change the speed of the motors [add logging]