Split dot graph generation into separate file and added readme