Updated .gitignore and added main file