Finished primitive serial communication and added allowable rotation direction