adds GetDiff and ShowDiff.