consistency, spelling, gofmt, simplifications and error handling