#12 add getPnodes() method and tests
#12 update npm version to 2.0.1
add diff