Major refactoring, sirel_relay_t1.php and its doc