Writing analysis section, and added some code for doing more analysis.