added docdists and topicdists