added diagram for docs