eliminated need for strings in table
changed table printer to take header as a separate argument