Some minor cleanup, docs, and an example in functional.