Possibly final analysis script; rearranged variables in final data table to put Subject and activity before the other variables.