cleaned up the vigenere code