*Added a small fix to prevent setting a global variable.

*Added a git ignore for IntelliJ based IDEs