Fixed bug in createTable.
Updated examples.