add code for generating merged cells
remove junk
more stuff