added smooth speed and rotation control