added kb conversion script, still updating the code to deal with entity types