Fixed not-updating "prev.error" by adding to sampler function. Needs a more elegant solution.
Changed data.frame to matrices in output. Also, fixed PROSPECT5 and 5B.