added a couple of new functions and variables, this seems to fix #2
test fixes to #2, seems to work; only test on node so far
doc changes for new functionality
doc changes for new functions