Added stream operators and sample command line resolution option