added ability to resume from keyboard interrupt, added argeparse