changed takestep rng distribution to uniform because it gives a 6-fold speedup over the normal distribution. Implemented unitests for metropolis routine and parallel tempering. Minor clean up and performance improvements.