Updates to deriv - now keyed-argument, and capable of handling higher-order derivatives