changed iOSSonic calls to ObjC, imported CoreLocation framework