Added a far more flexible way to locate the final value of a key list.

Also continuing to write proper docstrings.