Updated spm8w_compute and P files to allow for new duration parameter(p.duration)