added a mixin for rotation
added some comments