Add global hooks and provide some doc strings.