Added a .gitignore, and adding functionality to program