Added additional checks (sum of mass fractions) and options (tolerances, number of residence times)