Fixed some bugs. Now should be cross platform. Macs except weird code
Checks for actual factors
Merge pull request #1 from TheKing42/bugFix

Fixed some bugs. Now should be cross platform. Macs except weird code
Merge pull request #2 from TheKing42/feature

Checks for actual factors