Fixed struct method calling

Closes #103
Merge pull request #104 from charsleysa/metadata

Fixed struct method calling