added topic predictions to library interface