Adding gitignore

also updating main.java