Added some comment. Fixed some bugs on `Table` class.