fixed a bug with the progress bar
Merge branch 'dev' into scipy_update
Fixed handling of too few measurements for remeasurement, and turned off some debugging messages