updated derivative function to include order
Merge branch 'master' of https://github.com/trigfa/mpUtilities