add docs for hooks and thunks