Documentation Update: adding toXML documentation and a merge example