removed extra sigemptyset and updated documentation