add docstings to solve and itersolve