Extreme values: theory and technical applications (with discussion)