Added example code to the README
Tidied up example