Restored writing of latent variabels
Changed writing to mat files
Removed trigger.py because redudant with functionality of regress.py