add parameter for main.cpp

also update makefile