Added comments to and some refactor GenericXML
Comments, comment everywhere