pass node id to the callback in forEachNode
updated comment to reflect callback signature change
fixed comment
added test for updated callback args
Merge pull request #9 from timsavery/master

pass node id to the callback in forEachNode