update documentation and some minor bugs in t5 collapse.table