exception handling and consistency
remove double display of errors.
config simplification and changes
config file.