Added test for last bytes
Fixed rotate function.

Made it rotate rows of any length.
Removed output from examples.