Added some robustness to the buzz and beep removal codes. The original code allowed the bounds of the array to be violated.
added a sanity check to eliminate the zero byte files