README.md: add example on how to write hooks
Merge pull request #3 from Mic92/patch-1

README.md: add example on how to write hooks