Fixed issues with npm install

bin folder was ignored, amongst other issues. The code now works to
publish and install globally. Local install of package does not work,
investigate.