Minor doc edit
Take out a couple of debug console.logs
Add an example
Add some tests