interpolation and inverse matrix added, almost done.