added a sigint handler and some print's, also a try catch on sub