converted activity labels to factor

2 output_files are written one with all data and another with aggregated data by activity and subject

fixed some minor mistakes