reorder xml mods to push removing nodes to top so that libxmljs men leak does not happen
test code cleaning
Merge pull request #8 from amida-tech/libxmljs-mem-leak-workaround

Libxmljs mem leak workaround