formatting
Comments and Documentation

Remove some useless functions, started framework for rotation.