modify main.cpp for getting the input file from parameters