First set of derivatives work now.  Just need to implement remaining derivatives

Signed-off-by: Ian bell <ian.h.bell@gmail.com>