Prosecutor General investigates 31 former military commanders