Updating gitignore
Removed idea files
Implemented fix for issue #247