Modified convertToKnowledge so that it builds a definstances command

This allows calls to reset to be used without losing the information about that
module.