Added code for loading/saving config files, not tested yet