Modularlize and create an executable

	new file:   bin/npdx
	renamed:    index.js -> lib/cli.js
	modified:   package.json
Merge pull request #1 from dlmanning/master

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