added command line options.

You seem to be doing this stream oriented. Which is totally cool and way better. I just needed a simple solution. My feelings won't be hurt if you don't merge this, just figured it was a handy option.