panel_diff function

Tidy panel differencing