Adding .gitignore file.
Adding main function.