add generator file
fix generation errors
save wav file funtion