cleaned code, reduced verbosity, map with mva variables built, returning vertex with max_mva_id