Gh294 refactor renderer add base flex diagram renderer

#294 
Am pus expresia in constanta.