example usage missing require, priv key creation

a few changes that i needed to make to the example to make it run for me
Why?