Made loglog(..) more generic
Implemented jacobian computations