Added exception handling, indexing, column ordering and related tests.