Added comments and kill functions to sigchld_handler()