remove cleanup methods as they do nothing. restructure table_t to make private more methods and only expose the more used ones. clean up formatting a bit to make it a little faster