fix warnings, refactoring

- cast int, NSInteger
- code formatter, delegate and data source's methods in README