code formatting
add new example to show how to get the public key from the secret key