Use new metadata function

Updated example to use the new metadata method
Merge pull request #90 from joemarini/master

Use new metadata method