Add missing comments and fix other issues found by golint.