added flag to indicate if end of tag should be written while html generation or not
Added basic table tags: table, thead, tbody, tr, th and td.