added pycharm stuff
did some code style updates based on pycharm suggestion