Added signal handler term, the GPL 2 license, code cleanup