Daniel helped make my code run better and more smoothly.  We still did not fix the camera inversion bug.