General code cleanup

Stopped using pointers for Model objects
Fixed quit() function, fixed update loop
Fixed main update loop.