     override func viewDidLoad() {
         super.viewDidLoad()
 
-        // Do any additional setup after loading the view.
+        // Add Gesture recognizer for hiding the keyboard when tapping outside it.
         let tapGesture = UITapGestureRecognizer(target: self, action: #selector(CommentComposerViewController.tapOutsideTextView(_:)))
         view.addGestureRecognizer(tapGesture)
+        
+        // Prepare the comment text view.
         formatTextView()
+        
+        // Make the comment text view the first responder
         commentTextView.becomeFirstResponder()
         
         // Register to be notified if the keyboard is changing size
         NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CommentComposerViewController.keyboardWillShowOrHide(_:)), name: UIKeyboardWillShowNotification, object: nil)
         NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CommentComposerViewController.keyboardWillShowOrHide(_:)), name: UIKeyboardWillHideNotification, object: nil)
         
+        // Set the charging station title text.
         chargingStationTitleLabel.text = chargingStationTitle
+        
+        // Set the view controller title.
         let newCommentString = NSLocalizedString("New Comment", comment: "New Comment")
         self.title = newCommentString
+        
+        // Add rounded corners to the submit button.
         self.submitButton.layer.cornerRadius = 5.0
     }
     

    }
    
    func commentPostedSuccessfully(notification: NSNotification) {
        dispatch_async(dispatch_get_main_queue(), { () -> Void in
            SwiftSpinner.hide()
            NSNotificationCenter.defaultCenter().postNotificationName("DataUpdateRequired", object: nil)

    }
    
    func tapOutsideTextView(gesture: UITapGestureRecognizer) {
        // Resign first responder from commentTextview if user taps outside the keyboard area.
        commentTextView.resignFirstResponder()
    }
    
