Fixed lots of missing newline issues in text output