typo fixes

typo fixes. mostly non living code.
But statistics key and a few variable renames also.