Added rudimentary parsing of multiline output
Added support for single line tex output