get_samples function

Get posterior samples from a fitted model