updated to be globally runnable bin and published to npmjs.org