tag selection bugs fixed

-fixed issue with tag names being messed up due to parent node name
being wrong.
-moved the dictionary update instruction out of the recursive code
block.
-commented out recursive code because it doesn't work due to changes in
this update.
-updated documentation to be more clear about which elements are being
acted on in a given loop