Cleanup and spelling corrections

Cleanup in the script for clarity.

Spelling corrections.