Updated README and fixed the writing of config files.