Excel export added, bugs fixed and html email template created