fixed error in printTable
stats is now a structure, not a cell array