Add Open and close a file; Update .gitignore