minor commit - added to writeFile() using tutorial found at
http://www.roseindia.net/xml/dom/createdomchildelement.shtml