added trigger_error to create directory function calls
Merge pull request #28 from jctoledo/bio2rdfapi

added trigger_error to create directory function calls