Last commit before changing my method to have an external data munging script. This one works.
All tables and figures have now been sent for layout.