implemented a saving feature for config files, writes both to screen and to files in the working directory