fixed a series of horrifying bugs in c_energies.in files... it was terrible.