Added support for finding all factors. Also fixed a bug. Refactored for loop and variables.
Merge pull request #10 from someguy867/master

Improved outputs for factors, thanks to someguy867!