Updated traindata.py and renamed to train.py

Script can now be used to make training data, to train an ANN, and to test an ANN.