How to record audio and save it to wav file using Electret Mic Amp - MAX9814?

So if i want to make into wav file, i just need to add wav header am i right? When i add this header, it will automatically change my raw file into wav file right?

Why i manage to get the pcm data (raw data) using this only
rickkas7/ADCDMAGen3_RK

The raw data that i got is this
image

The graph in this picture is obtained by using the ADXDMAGen3 library only. I did not use this thread