Tested PyCharm; some pep8 fixes, and updated .gitignore.