Cleanup and added some untested methods. Removed some unneeded deubg logging messages.
Fixed nearly all outstanding bugs, should be stable enough to use now. (Incorrect offsets, empty stats files, etc.