Formatting and expanded the hooks documentation