In case anyone is interested in what Volkswagen did exactly in "Dieselgate", I can recommend this talk at the Chaos Communication Congress 2015, that does a technical deep dive: https://media.ccc.de/v/32c3-7331-the_exhaust_emissions_scand...
The talk includes some pretty impressive reverse engineering.