adding code book and a few correction to run_analysis