added example to readme

Added a example in the docs so this is easier to get started with.

by the way, the version on npm is wrong.
index.js is just `module.exports = 1`