Slightly documented the hooks and commands.