Commented code snippet on MainViewController. Added a few comments.