have commented out dispR calculation and all refinement steps for now to accelerate testing, also added maxDisp to be passed in as as one of the args