Bug 176: changes to opening and closing of OPF re: newlines, commas, more