Fix closing table tag and TableQuery type.
Merge pull request #143 from lmm/patch

Fix closing table tag and TableQuery type.