changed wavparse library to provide error msgs