added code to create latex tables