Add thermodynamic potentials

Not ready to be merged. Opening for comments/suggestions.
So you somehow copied files back and forth? If you had commited your changes on top of the version you downloaded, we wouldn't have to track down these changes now. (just for future reference!)