Debug v3 Week 3

Fixed code with updated comments