Small changes.
Added signal handling.
Merge branch 'signals' into dev
Fixed problem with program index being signed.
Also cosmetical changes.