Improve emails, add agent csv and email clear