Added computation of Ising magnetization
Created method for run with hooks