Add cli parameters for newton max residuals and max iterations