Xrf fit

I will remove erf and erfc here, because they are not used in the code at all.