Start work on a separate script using real data to check for sampling problems due to simulation issues
various outstanding debug changes.