Added comments and 1 missing functionality in rotating