Update run_analysis.R

Minor changes to name variables in the tidy data.

Minor changes to code format (text alignment, tabbing etc.).