Added function to write output to text file
Adding .gitignore
Adding input test file