Implemented rotation of objects

some additional class changes