merged fixes from all forks

Hi @taggon,

Hope you are doing well. 

Andris and I are unsure if you are still maintaining this repo, but if you are, you should accept these changes.

It is basically a collection of all the working improvements and bug fixes from all your forks. I have also notified these forks to delete their branches. Hoping to consolidate down to one or two main repos which we can reference from npmjs.org.

@andris9 owns the npmjs.org node-js package (I guess you never published it there), and I am currently a co-maintainer. It would be nice to have you--as the original author--involved there, as well. What are your feelings about this?

Best regards,

@mikesmullin