Add #compare function.
Documentation cleanups.