Modified run_analsyis

Modified run_analysis to use reshape2 instead of ugly loop