added documentation for canAddByChildNodeName() and minor fix in the method