Updated mvd code and added an example.