Update main.cpp

Added some documentation