ElGamal and PrimeGenerator corrections & some changes