Add debug messages and fix for running with Node 0.10.32.
Merge pull request #12 from daffl/latest-node-fix-debug

Add debug messages and fix for running with Node 0.10.32.