The current example lacks two use statements to be functional.  Additionally the composite index example is wrong, it requires the keys to calculate.
Merge pull request #15 from stanlemon/docs-fix

Fix examples