updated the example to use timestamp based directories and changed the logging.