Added some comments in xml_nodes.rb

Added explanatory comments while reading the code.