added functionality to save and write config files in Mapper.py