Added config file loading and saving