Fix monte carlo to sample in rectangle not line

Updated datafit and stable_check to use this fixed monte carlo.