Implemented Wave FIle writer