Added commets and useful refactors
Modified .gitignore file to don't register pycharm files