Modified the generate_fill algorithm to erase the comment layer from the flattened cell before painting it in the area to fill; otherwise, any existing comment areas would interfere with the fill algorithm.