added GenerateKey
Merge pull request #31 from genghisjahn/add_gen_key

added GenerateKey