numericDeriv now works, better documentation