Lots of Work

- Bugfixes everywhere
- Rendering works now, now need to fix the bugs in IO