Major refactoring, improved exception parsing, few new config options