ADDED FUNCTIONS TO scala_samPrior