Understanding code and cleanup. Introduced calculating Jaccard similarity <Karthik>