Updated main loop with fps counter.
Fixed errors with Timer class.
Set up a makeshift fps counter.