added a version with A(neq, nvar), updated log space solver
log space jacobian works, removed if statement