update comments of main.cpp