Changed initial configuration file writer to use write-output and out-file to try and keep ASCII formatting to config file.