Minor update to use the QTableWidget

Now the QTableWidget is used to generate the documents.