-Spectrogram output inproved by using normalized wavdata instead of rawdata converted to shorts.
-minor readability tweaks in test and wavtest