logic bugfix and pylint warning clean-up
gitignore update