Corrected some spelling mistakes.

Corrected some spelling mistakes and removed trailing blank spaces.