Lint source code

Golint [https://github.com/golang/lint] is the recommended linter
for Go source code. As pointed out by the linter, I have changed the variable names to follow the standard naming conventions of Go community, replaced `errors.New(fmt.Sprintf(...)) with fmt.Errorf(...)` and grouped imports logically.