added some code to work with metada
Merge pull request #49 from overjt/patch-1

added some code to work with metadata