Updated to support ARC and modern Objective-C
Fixed warning
Enabled ARC in sample project