Lots of stuff, got rid of old code, config file support, better dir handling, and fixed some layout issues