Some changes to the ising model code