more revisions from tech review around error handling and refactoring; moved config into a seperate folder, cleanup