Improve offset estimates

Use a conservative 5-sigma clip and numpy.nanmedian when estimating the
difference level. Before I was getting nan values of differences.

Also only doing 1 iteration of sigma clipping.
PEP8 the difftools module