remove useless main.cpp and commented code