Added capability to auto detect output format
0.1.1