Added missing newlines to fprintf's.