Refactored out creating the projection matrix.
Removed unneccesary variables.