Fixed type errors and added support for Darwin
Merge pull request #2 from russellchido/master

Fixed type errors and added support for Darwin