Modified KnowledgeSource

Factory functions and Modules added