Add .gitignore
Move Scanner into main()