         loadSavedMatches(offline)
     }
     
+    /**
+    loadUserData
+
+    TODO: Load user data from Parse using username stored in Keychain
+
+    @param: offline - Bool -- if user is offline
+    */
     func loadUserData(offline: Bool) {
         if offline {
             /// load cached data

        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        self.flushData()
    }

    
    override func viewDidAppear(animated: Bool) {
        if isUserLoggedIn() {
            // if view revisted in app, load again

            // DEBUG:
            print("user is not logged in! oops")
            super.viewDidAppear(animated)

            //// TODO: segue to login screen
        }
    }
    
    // LOAD CONTENT FUNCTIONS ---------------------------------------------
    
    /**
    loadContent

    Loads user data and saved matches (favorites)
    */
    func loadContent() {
        //// https://developer.apple.com/icloud/documentation/data-storage/index.html
        /// "Data that can be downloaded again or regenerated should be stored in the <Application_Home>/Library/Caches directory. Examples of files you should put in the Caches directory include database cache files and downloadable content, such as that used by magazine, newspaper, and map applications." --> database cache!
