add --version flag
gofmt
ensure that we close leveldb