More work on superimposed training.

- Also removed critical temporary code in detector