table fixes and tree renderer

fixed some reference bugs in the table
added tree renderer