relay: docs, tests, and updates