Xrf fit

Are we taking file I/O stuff in here too?