Added some comments
Added SIGINT handling and allowed for factorization of larger numbers