update node docs and add examples
pass tests