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

Fixed some bugs. Now should be cross platform. Macs except weird code