Improve arg parsing, and allow output to stdout for streaming purposes.