Changed main loop to render and update on separate frames. Removed profiling.