Add Open link around each document snippet
Basic error handling