Fixed a few things, started Doxygen documentation of the engine.