Added an iterator example/test and updated the .gitignore.