Issue #103 Change-Id: I67945c8ec6d2c178494d3b5400e5ec0170e9d115
Also refactor the command line flag validation app to make it cleaner. Change-Id: Idb7bb33bd3060aaf25765c1575ceddd901b90c4d