converted the code to TFIM.  Tested energy for 8 sites.  Seems to be working.  Sent energies and entropies to Steve