searching code complete
a funtion to return a map of results and score is complete.