Massive fixes to matrix class

Fixed a severe bug in the matrix rotations. Patched up camera. Most
issue didn't happen on my desktop, but will keep an eye out for it. Next
steps will include drawing primitives and rigorously testing them