Add example code

Hi I added an example to the readme as I had to reverse engineer you code to work out how to use it.

I haven't tested the example though so please check that it works.