Fixed a missing </tr> closing tag
Set a flag to print out the header or not