changed outputstream parsing to understand newlines
comments