free energy calculations

TODO