Added code for outputting latex tables.