Moved profiling stop to program end.
Changed time.After for time.Sleep where possible
Add FPS flag