Fix Golint errors, except for all the missing comments.
Fix `go vet` errors.
Flatten nested ifs with DeMorgan.