gitignore, gofmt and small cleanups

I am currently using gosseract on a pet project. I did some cleanups. Maybe you are interested.