added new script which calculated stdev and average for each contract