Cleanup some unneeded hooks code.
Improve docs.