fixed all warnings, moved to ARC, modern ObjC syntax.