Compiles

I've made a large number of changes, and I now have it compiling! yay!
it crashes on startup though.