fixed sample rate for 16-bit ADC max, added some comments