added dynamic pulse params, removed need for matlab