fix typos in method- and class-names

plus: sanitized whitespace and newlines