changed wavparse library to close file