added writes to each loop in functions
Merge pull request #385 from micheldumontier/clinicaltrials

replaced faulty readdir with glob; added empty check in event finder
updated to use new API
Merge pull request #386 from micheldumontier/sgd

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

Conflicts:
	sgd/sgd.php
Merge branch 'release3' of github.com:bio2rdf/bio2rdf-scripts into sgd
Merge pull request #387 from micheldumontier/sgd

SGD: use new NCBO API
Merge branch 'release3' of github.com:bio2rdf/bio2rdf-scripts into clinicaltrials
give option to only download new files