Add thermodynamic potentials

Not ready to be merged. Opening for comments/suggestions.
Still not working.  The regex line is the problem.  For the case of one atom, there is no element[1]