Add saving of published data.
MAke dta file object a pure immutabl valu object by extracting facotry in static method than do it in constructor.