Add documentation of the hook system