moved total timing to end when the sampler function is done
Added Gaussian with restriction