Added signal handler to stop program using ctrl-c