Cleanup of samples including adding flags to control logging.
14 files changed