add documentation for hooks