Added support for the different versions of COMMAND files
Added a new --outfile flag for specifying the complete path of the file