Cleans up output to one-line, flags for exceptions