added logic for multiple links handling
Merge pull request #26 from elifesciences/improved-links

added logic for multiple links handling