Add working nested sampling code.