Fixed issue were newlines are stripped from the input text.
Added printing of stack trace to pipeline code.