update docs to match the example. fixes #45