Added quaternion rotation to camera and fixed some matrix bugs.