Added support for stdin and stdout when file name arguments are not given