Fix for #7 - extract document ids in get_publications

Address #7 . Please run our own tests before merging.

Great package!