Works with Mavericks
add Mac support
better command line argument checks
Merge pull request #2 from tyhoff/master

Add support for Mac