* Add commandline options
* Fix the file open issue for subprocess stdout