changes to find median solution for log-normal PDF in state space and changes to reading of prior fluxes