Added data analysis output.

Data analysis is a more general routine now that will output general statistics
of interest during the simulation. Need to verify we are getting correct
results for these calculations.