Aligned the smaller, self-referential arrowheads with the bottom of the node and more or less centered the lines coming in to the arrowhead. The proper refX for the larger arrowheads is commented out in the code until I can figure out how to shorten the svg paths so they do not extend past the arrowhead.