Made some changes to the ising model code.