Added erange option;
Added free energy lost computation