Add comments to reverse.cpp