New methods getTotalLength and getPointAtLength were added