Fixed compiler and static analyser warnings.

Added cast to silence compiler warning.
Removed unused ivar.
Updated project settings.
Merge pull request #3 from ant512/master

Fixed compiler and static analyser warnings.