Refactored and improved loading the settings through the setting files and the command line arguments.