updated argument description and maxiter to 1000