added validation of produced output against a defined schema; added
thread safe collections to glossary/knowledgebases