added stuff for vigenere correction, and counting for substitution