added trial definition files, updated preproc_func.m