Fixed small things in 2D code, added unfinshed 3D with rotator support.