Updated usage information and added example for hooks.