a link is more useful
merge
set nodeType and nodeName for better duck-typing
Merge pull request #9 from dominictarr/nodeType

add nodeType