cleaned up difference plot code & wrappers