BUG: Fix problem with combining train data twice

The combine function assigned the train data to the
test data, thus duplicating the training data and excluding
the test data.
Add draft structure of code book