Split the setting and printing of vars.
Ran go fmt.
Merge pull request #2 from haarts/master

Prevent output when not debugging, go fmt corrections also