Corrected algorithm for finding roots of cubic equations; tested routines for finding fugacity coefficients, Poynting Factors, bubble-point and dew-point pressures.