Include sanity checks for signum and PID.
Add cosmetic fixes and licensing information.