Merge pull request #386 from micheldumontier/sgd

added writes to each loop in functions
Merge branch 'release3' of github.com:bio2rdf/bio2rdf-scripts into sgd