basic analysis script to aggregates results as .csv