improved demo with table generation options