Added email template to doc
Framework to process triggers