adds computed vector v and matrix M to the model