working version for table layout generation, no cell coloring
background coloring implemented