Made a few small tweaks, fixed an issue where rotations would not always go the right way.