Wrote newton raphson for log models.  Julia currently not runnable.