Added pre-sorting of curves before fit to bayesian version
Added multiple output fnames