consolidating all files into train.cc