gitignore update and code formatting

added idea files to gitignore and formatted code according to pep8 naming convention