fixed comments and added iteration model and validator.