Quickly describe what a hook is and how it can be used. It should also contain a section on how to add a new hook.