added .gitignore
make sure the factor is valid (also accept non-base 10 numbers)