Closes #30. core.lsq now includes a variable indicating the number of subtrials.