Minor code cleanups in order to conform to PEP8. Added a comment on my own code.