Added length definitons.
Added length tests.
Added length documentation.
Merge remote-tracking branch 'ghf/master'