Add thermodynamic potentials

Not ready to be merged. Opening for comments/suggestions.
where are the things like mgc2 defined?