Finish exporting + lots of bug fixes + I'm really tired now...

There are lots of changes... It would be nice to get this in before the demo tomorrow if possible. It should merge just fine, and the build is working for me.