Added metadata export.

Ref.: #9.