Xrf fit

Related to an above comments, we can probably just pass in `no_iterations` as an input parameter.  I would also rename this to `num_iterations` as `no_iterations` reads to me as a bool flag that prevents iteration if it is `True`.