Add .gitignore file
Modify .gitignore file

Better way of ignoring directories