docs/hooks: add documentation on hooks