Wrote waveshape_wav, added music.wav and wrote test code.
Various syntactical fixes.