Fixed Warnings and updated to modern Objective-C syntax

Fixed Warnings and updated to modern Objective-C syntax