changed example signalhandler
update examples
Add register name and register signal handlers calls
Update examples and tests