various cosmetic changes: go vet, "idiomatic" doc comments, backquotes for regexes