add tempest style logging (has some unused code ), add option to send html email report