edits and minor code example cleanup
compacted multi-line method calls; made type checking pep8 compliant
compacted multiline method calls; simplified timeout calc
Merge pull request #14 from pbx/cleanup

Miscellaneous cleanup and PEP8 compliance