add derivs.R, which does gradients/hessians/eigenvalues/ridges