added notes to main.cpp