Fixed bugs in code, and updated for final version of chapter 2.