First try at wave reading and writing...