Fix typos and whitespaces

Minor patch to fix some typos and whitespace issues.