regenerated types, added cosine sim score
Finished cosine similarity calculation