refactored typos, chomped trailing whitespace