add bin for command-line use

also check node version in package.json, not in program