Added support for arguments -i <inputfile> and -o <outputfile>