Found and marked unused methods. Made generate egamal in A actually generate elgamal keys. Moved some exception handlking away from Exporter