Adding sanity checks to settings and train_subject scripts