Document length functions - references #2