added config file parsing and saving