Small fixes in elgamal algorithm.