Added doc comments to all hooks
More documentation especially for hooks