Added .rf extension to acceptable extensions in the buildKnowledgeBase()