feat(snipper): adjusted parameters, steming bug

We were not doing for the sentence while doing cosine. fixed that.
Query size of window_size and length was creating disparity.
Fixed some issues, pointed by olly like indentation,space
and passing by reference