Improve sending email, messages log and documentation