Added the requirement to name Nodes
Added getNodes function, to get all nodes of a specified name