README.md: add example on how to write hooks