Added argument parsing and logging
Merge pull request #1 from russell/master

Added argument parsing and logging