Corrected some spelling mistakes and removed trailing blank spaces.

Corrected some spelling mistakes and removed trailing blank spaces.