Per-convention, move the main body of logic into its own function.
Merge commit 'cad502d' into cleanup

Pull in the PEP8 cleanup from the other branch.
Merge pull request #3 from brycied00d/cleanup

Merge pull request from brycec to implement a main() function