Merge pull request #876 from dlobo/MiscFixes

fix formatting and tabs
improve mail log comment