added changeSpeed and updateSpeed Motor functions