refactored compute_rows_and_colwidths; moved qc functions to another file, not functioning, will fix later