Complex script + KnowledgeDataManager fixes and gitignore update