Added getNumberOfRows, replaced is (not) None, removed uneeded methods
Fix constructor calls. Fixed uses of self.tableId