Formatting & comments.
Added collision detection on rotation.