Creation of doc and datapath diagram