Irreversibility and entropy in Rational Thermodynamics