add rho, lambda updates, fix bug in iteration.