Add package.json for npm

Signed-off-by: Eli Skeggs <skeggse@gmail.com>
Update README.md, add sample code

Signed-off-by: Eli Skeggs <skeggse@gmail.com>