Improved functions comments on view/MainView.php