Added row normalization and beginnings of the training system