fixing newlines, cleanup file