added data stft function, changed function names for cosine similarity