Comments added, xml reader revised