Update main.cpp

added comments to explain previous commit