added program that extracts data needed for correlation analysis