assorted formatting and typo fixes

mostly identified by `go tool vet`
Doh, indeed.