completed first pass at saving results tables to file