added fail counters to the top of the message body
some minor changes
merge with master
Merge pull request #836 from ncos/log_beautifier

Make e-mail messages look more beautiful