Gravar e-mail: Optimization of an irreversible Carnot engine in finite time and finite size