Add some features

I really don't remember why i've added this function "getPrivateKeyOrSecret".
I try to find out why? But it seems that she's useless. 
I've run some test and all work fine. 

Thank you for having pointed out to me this bad thing.