Fixed write_metadata/create_metadata methods
Merge pull request #36 from euroelessar/master

Fixed write_metadata/create_metadata methods