Many changes to make it easier to recompute required data from raw data. Also added functions to create data files needed for doing statistical tests.