Xrf fit

The model functions need tests.  I would evaluate them at ~dozen known points for 2 or 3 sets of parameters.