refactored import pubmed literature function