Made the loader actually load stuff
In doing so, some code had to be shifted around, but in the end I think it's cleaner. Also some random optimizations were made.