Added a new function that returns the xml tree.

and some notes that help navigate the xml.