Some code updated to a more modern Objective-C. Tabs switched to spaces.