Finished the top link figuring, but it is messy and uses query liklihood, Vignesh checkout the two text files I added to see what they output