Fix docs somewhat, add monitoring hooks.