Add doc for signals.
Added doc for handling relations.