Added command line parsing utility.
Support output to file