Fixes case of passing both input and output formats, and changes default output format.

Adds a few more usage examples to dummy app, and improves tests accordingly.