golint & remove other constant

Mostly golint. Also, removed URL constant because it was unnecessary duplication
of the global URL variable.
adds init()