Added exporting of public keys back in
Remove logging