modify line generation

Width depends on the depth. Add arrow-end.