added a new -tabletype argument to reflect difference in wiki and twitter data structures. Fixed a number of bugs related to misnamed variables in the Document class.