added .gitignore and added Saving mode to the program