Added documentation to Main.cpp