Added command line parameters, fixed a bug that locked the source archive file,.