Add anchor attribute to coderef for proper indentation and add an edge weight to dot