Added the beginning of the ENvelope detector. Gm stage.