Added lots of things.

Added, System, Demo, FPS, FrameTimer and Timer. main is also cleaned up.