free energy codes