Updated the documentation a bit more. Added a minimal example hook.