Fix bug where lines in output weren't actually terminated with a newline character.

Also ensure that every 200 odd tweets we write out output to disk