Replaced char buffers with strings, added sigchld handler, and timeout intervals