     }
     
     public func application(application: UIApplication, performFetchWithCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) {
-        if dataManager == nil {
-            createDataManager()
-        }
-        
-        let originalList: [NSManagedObjectID] = (dataManager!.feeds().reduce([], combine: {return $0 + ($1.articles.allObjects as [Article])}) as [Article]).map { return $0.objectID }
+        let originalList: [NSManagedObjectID] = (dataManager.feeds().reduce([], combine: {return $0 + ($1.articles.allObjects as [Article])}) as [Article]).map { return $0.objectID }
         if originalList.count == 0 {
             completionHandler(.Failed)
             return
         }
-        dataManager!.updateFeedsInBackground({(error: NSError?) in
+        dataManager.updateFeedsInBackground({(error: NSError?) in
             if (error != nil) {
                 completionHandler(.Failed)
                 return
             }
-            let al : [NSManagedObjectID] = (self.dataManager!.feeds().reduce([], combine: {return $0 + ($1.articles.allObjects as [Article])}) as [Article]).map { return $0.objectID }
+            let al : [NSManagedObjectID] = (self.dataManager.feeds().reduce([], combine: {return $0 + ($1.articles.allObjects as [Article])}) as [Article]).map { return $0.objectID }
             if (al.count == originalList.count) {
                 completionHandler(.NoData)
                 return

    public func applicationWillTerminate(application: UIApplication) {
        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
        // Saves changes in the application's managed object context before the application terminates.
        if dataManager == nil {
            createDataManager()
        }
        dataManager!.managedObjectContext.save(nil)
    }

    // MARK: - Core Data stack

    }
    
    public func application(application: UIApplication, didReceiveLocalNotification notification: UILocalNotification) {
        let str = application.applicationState == .Active ? "Active" : application.applicationState == .Inactive ? "Inactive" : "Background"
        if let splitView = self.window?.rootViewController as? UISplitViewController {
            if let nc = splitView.viewControllers.first as? UINavigationController {
