Updated comments, and a method to crete xml file form data.