introduced temperature (beta) into simulation, adapted tests and helper functions, changed definition of energy p ~ exp(-E) is more intuitive