updated table class to accept items and headers. removed builder redundancy.