Implemented rendering, and a lot of other crap