updates to main and a utility script for splitting datasets up by train and test