Made some loops more idiomatic (edited in line, haven't tested)
Oops; fixed fencepost errors I introduced
Removed semicolon. Someone's Objective C is showing! :)
remove some diff noise
Shortened the JSON creation a bit; other minor refactorings
Merge pull request #1 from codingapril/master

A few tweaks