scoring algorithm completed, added a relation type to hold the results, reorganized flow of the program