Adding trigger_error calls to CreateDirectory method

bio2rdfapi.php now triggers an error message when directories cannot be created. 

nscounter.php is also being added.