added .gitignore
make sure the factor is valid (also accept non-base 10 numbers)
removed unnecessary #include
convert spaces to tabs
Merge pull request #1 from jlamothe/master

proper number for factor