Added logic to make the insertTable() work
Merge origin/master
Merge origin/master
Added comments