Modified to output latex formatted tables