All errors solved (Adjusted main.cpp). Adjusted average.sh to run csv1 file.