compiling and running version, sometimes stopping because of inverse matrix issues, energies are still wrong