Upated LaTeX generation; small bug present with table, will be fixed in next commit