Made some minor alterations to modularize and make a working executable.

new file:   bin/npdx
renamed:    index.js -> lib/cli.js
modified:   package.json