fix signal handling code, add readme msg