gofmt formatting

Applying gofmt to the code via http://blog.golang.org/go-fmt-your-code and changing the top of the file comments so they show up nicer in godoc (http://blog.golang.org/godoc-documenting-go-code).