Made script compliant with PEP 8 -- Style Guide for Python Code.
Improved coding style.
Fixed typos in the documentation.