Fixed and implemented all rotations.

Rotations should now work. An example is added in TestRotation.java; it rotates
every two seconds and pressing 'r' changes kind of rotation
(right->left->full->right->...).
Fixed window size.