removed some rather senseless debug code, and changed the sample rate sizes to constants