Added training dat read, regex for training data and outputs are saved.