Added text-summary output format. Improved logging.