Closes #54. startTrial.m and called called functions are now independent from the gui.