Minor bug fixes

Make API requests node 0.10.x compatible, fix error messages, + some
other minor fixes in demo.js
Fixes regarding comments

Addition of a blank line and comment.
Merge pull request #13 from ordrin/dev_polina

Minor bug fixes + comment additions