removed test/train processing

Up to stage 4 complete
final version

or until I find an error.. or I change my mind....