Complete analysis script.  Add tidy data CSV output.