Edits and fixes to the latex table generator.