added random noise to measurement, slight modifications to printouts