Issue #58: rename length to duration
Issue #58: renamed length to duration in tests
A few extra changes from length to duration in docs