misc changes, mostly to implement bayes factor calculations for intervals, but also some tidying