add writer and reader classes of epoch file