refactoring and doing comment to understand it easier
Accumulate result files into one csv file

fixed #4