More refactoring, began work on rendering UI
Began implementing UI rendering functions, fixed a bunch of GC