finally got jaccard calculation working
fixed null pointer exceptions, code runs successfully