Fix a few typos
Regularise error throwing in staticNode.js (fixes #21)
Merge pull request #27 from rrthomas/master

Regularise error throwing in staticNode.js (fixes #21)