added fixation point function and editted trialfunction accordingly, adde dscript to test it