Added feature mentioned in issue #100. "create a thead from first row when no thead exists"