Add .gitignore
Updated .gitignore
Corrected code indentation
Tried to solve too many open files problem.