added debug possibility for the graph. layout fixes