Finished get_relevance and added some test code in Main