Fix strict(er) compiler warnings.

* mismatching variable types (int vs. NSUInteger)
* Variable incorrectly flagged as __unused
* Mismatching .h/.m return and parameter types
Merge pull request #8 from CenterDevice/master

Fix strict(er) compiler warnings.