fixes #20 add warning when reading from stdin
Merge pull request #24 from jantman/issues/20

fixes #20 add warning when reading from stdin