add xtable2 and readme functions