Added loading of config-file
Changed how the config loading works