More work done. Need persistence on trainer setItems. Need persistence on matrices in the trainer