Fixed formatting of the XML output
Changed XML scheme a bit
Switched from nonNegativeInteger to positiveInteger
Added documentation