Tips on choosing infrared sensors and receivers

I've been thinking about this and wondering if anyone might be able to point me to a circuit diagram of something similar to the various circuitry included within the TSOP382. I was thinking that if I could find a diagram of how the input, automatic gain control, band pass, demodulator and control circuit of the TSOP work then I might be able to build something like it on veroboard, the advantage being that I could then adjust components to make it less sensitive if necessary (hence ensuring it ignores reflected light) and I could get an analogue intensity level out from it rather than just a true of false. I would think I could probably get an analogue level corresponding to the intensity specifically of modulated 38KHz (or whatever frequency I preferred if I adjusted other components) light being seen. can anyone point me towards a clearly labelled circuit diagram of either the circuitry in a TSOP382 or of cruder circuitry serving roughly the same purpose.

Thank you