add documentation for rotation algorithm