changed \n to Environment.NewLine
changed configuration file name and logfilename to chat