actually export HookRegistry

+ some white space fixes