added setMetadata and added type to update metadata
added getMetatdataItem