Update .gitignore, changed Python logging, added exception handling.
Created by: louwersj
Added a number of lines to .gitignore to make the lives of people who develop in PyCharm a bit more pleasant. pyCharm adds some virtual env directories and .idea directories which you do not want to end up at github.com