Added sample to demonstrate table export to directory