Remove trailing whitespace and fix some spelling mistakes