fixes to latex generator and readme