Fixed (and commented) rotate and updated README
Updated rotate to be modular for future use.