Big update.

Added lots of functionality. Rendering now works and input added.