Cleaning up code #23, added rotate and autoRotate #36