Created .gitignore and made some changes around the main() function