Added final write.table statement and comments
modified final write.table statement slightly
Fixed activity/subject colnames (post-aggregation) and cleaned up data export