Measurements of tau decay modes and a precise determination of the mass