fix a bug with quadshifting the data and not the mask. Add the option to tell it that the diffs are originally integer valued.