Fixed 0 column Index bug and added test.
Outlines of new Table and Index classes.