added comments to the main.cpp file