fixed bug in rotation, fixed bug in end(). more tests