Updated docs and notes.
Corrected examples.
Conformed to pep8 specs in code.