added a script for testing signal handlers
function re-naming and documentation