Added Get public keys methods, improvements