Added FPS counter

Also added some comments