         }
     }
 
+    /**
+    didReceiveMemoryWarning --override
+    */
     override func didReceiveMemoryWarning() {
         super.didReceiveMemoryWarning()
         self.flushData()
     }
 
+    /**
+    viewDidAppear
     
+    Checks that user is logged in before loading content. If no user, redirects
+    to the login page.
+    */
     override func viewDidAppear(animated: Bool) {
         if isUserLoggedIn() {
             // if view revisted in app, load again

import Parse

class ProfileViewController: UIViewController {
    let TITLE_PROFILE_PAGE = "Profile"
    private lazy var savedMatchIds: [Match] = [Match]()
    
// OVERRIDE FUNCTIONS
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.hidesBackButton = true

        }
    }

    // FLUSH CONTENT FUNCTIONS ---------------------------------------------

    /**
    flushData

    Clears all stored matches for user.
    */
    func flushData() {
        savedMatchIds.removeAll()
        /// empty caches
