set up for sequencing expt

encapsulate some code as functions; modified for multiple trials; code
for setting whether to permute on each trial, and for which base and
referent/feature will be used on each. Still need to modify data
collection