Added an index() method to expose the entire metadata map. Fixes #15