Program now aborts if STDIN is terminal not file.
Cleaned up output for CLI.