now generates a .dot file instead of a txt file