Added the interupt code to allow for a graceful exit by hitting ctrl-c. Just need to document it now.