Tidy up remaining files in build_tables namespace
Allow callbacks to be specified for debug output