Added the analysis script that produces a csv with all the necessary calculations.