Format error messages consistently
Add iterator methods