Add #replace function.
Documentation cleanups.