fix warnings, refactoring

- cast int, NSInteger
- update delegate and data source's methods on README