hooks: Add ability to read file contents
hooks: Catch SIGTERM in pthread
hooks: Modify error messages
Add an example of using hooks