added code to load rdirichlet