refactor fixed rotation into autoload file
implement new rotation algorithm (#5).