Added ancillary functions and speeded up Helmholtz derivatives; less object oriented, but faster.

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