inversion update more or less working, also added a tool to plot the real model, the test model and the kernel in one plot