You are creating a Table with just one row. Your Tablestyle is set to have a Title and to merge the cells in the Title row. Change the table to have 2 rows and give the first cell the Title. Be sure to adjust the value of i to i-1 when filling in the columns.