minor update
first draft of test/train dataset generation - it has bugs