removing nils from array and fixed issue of adding plaintext to keystream