Added composition

composition is now added using “type” in the json file, together with
splitting ut the flows