added top-level comments to test functions in main.cpp