Added loudness detector, enhanced histogram