Restructure internals for clarity

Cleaned up some of the block diagrams by adding internal VIs to try and
make it more obvious what each one was doing.  Also served as a check to
make sure I was closing all of the XML parser nodes.