w.i.p. fixing build / adding unk2 field to memEntries / initial implementation of writeEntries method