Added functionality to ringbuffer
Removed unused variable in goertzel