added logFileType argument in create/ensureTable.
fix small bugs .