Modifications to return chem potential and formation enthalpies