update and extend README with an example

add the example as a test, too