Iterator over cursor
Fixing code style
Merge pull request #5 from limejelly/cursor

Iterator over cursor