* add relay endpoint * documentation * simplify code * fix comment
Co-authored-by: gipsh <gipsh@gmail.com>