First draft that supports config files
Fix config file creation
Fix config file issues