Add csv input file
Ok need to restructure these codes