added code to generate table. edited paper.