Fixed the frame counter
Finished implementing config fps