Updated a few things.
slop=0.5 in calib.py
changed flagval in pgflagger.py