tons: more InvMelTr, add qg, startet resum, more test, lots of fixes