improved output, add latex export option