Added comments for main.php