Created and generated docs/examples for relay constructor