Added newlines to error fprintf's