added some documentation
let user specify keylength and public exponent