Regarding the peak detector function: integrating the rectified (out of the AD8036) wave will provide an image of the signal's amplitude, when this amplitude is constant.
Detecting peaks is always a tradeoff, you have to think about the rise and decay times of the input signal.