Update main.cpp

Added documentation