Continued work on parsing request. Still not totally implemented yet. Also added cleanup code to signal handler for SIGINT