Creates DS Object and writing metadata