updates .gitignore
Makes main mode more testable

(#1)