minor tweaks
added email send functionality