Update main.cpp, add conf