added WriteFile class to output tree to .gv file
merged the changes