Add creation of .dat file by writing header and few machine codes