Add gitignore
golint + errcheck
Merge pull request #1 from mdlayher/master

golint + errcheck