Switch to NSInteger rather than `int` to fix Xcode compiler warnings

I couldn't get the `Tests` target to compile, seems like something odd is going on with linking in GHUnit, but the demo compiles and runs correctly with no testy Xcode complaints. Thanks for a great little library!