Xrf fit

these two inputs can probably be combined.