Spelling fix.

Very minor: spelling fix.
Reworked two functions, etc.

Two functions were straightened up and streamlined. Comments in
one case were converted to single line comments. Grammar fixed.