have TreeWriter write a line corpus optionally