Production and properties of the τ-lepton in e+e− annihilation at C.M. energies from 12 to 31.6 GeV