Added some code for rotation/scaling

project builds but rotation and scaling don't work yet