support `-version` flag

and made config.Config passings to references