added appendDots option, fixed appendArrows