Effects of stoichiometry, purity, etching and distilling on resistance of MgB2 pellets and wire segments