fix handling of signals
Explain examples Fixes #10