cleanup and first implementation of wav playback