Added optional HTML formatting for sending exception by email.
Changes in code documentation