Use logging and fallback to stdin
Merge pull request #2 from AlexBarnes86/master

Use logging and fallback to stdin