add doctests and fix the discovered bugs in table_generator_from_instance_list
add doctests and fix the discovered bugs in table_generator_from_instance_list

hobson/pug,hobson/pug,hobson/pug,hobson/pug