minor bugfisex in dilution.c and some cleanup in EV_analysis.c