Add Doxygen documentation and small edit in the XML class