Update the documentation and tweak the logging/email logic.