Implemented logging, started working on a config system, did some groundwork for IO.