Update main.cpp

We have added meaningful comments for each section.