Added create table method.
Fixed some bugs in model.
Updated the examples.