Completed functional vardiff implementation. Could still use some tweaking on interval mechanics